package br.com.simulador.vo;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import org.apache.commons.beanutils.BeanUtils;
import org.jboss.seam.annotations.Name;

import br.com.simulador.model.Tag;
@Name("tagVO")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class TagVO implements Serializable{
	@XmlTransient
	private Tag tag;
	private Long id;
	
	private String descricao;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getDescricao() {
		return descricao;
	}

	public void setDescricao(String descricao) {
		this.descricao = descricao;
	}

	public TagVO() {
		super();
		// TODO Auto-generated constructor stub
	}

	public TagVO(Tag tag) {
		super();
		this.tag = tag;
		try {
			BeanUtils.copyProperties(this, this.tag);
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}



}
